var arr = [{
    name:"moyu",
    gender:"male"
},{
    name:"momo",
    gender:"male"
},{
    name:"tom",
    gender:"female"
}]

var result = arr.filter(function(item){
    return item.gender === "male";
})
console.log("男生有哪些？",result);
